<template>
  <div class="home" ref="home">
    <div class="swiper_box">
      <swiper
        :options="swiperOption"
        ref="mySwiper"
        @slideChange="slideChange()"
      >
        <swiper-slide class="swiper-slide-defalut">
          <div class="homeBanner" v-if="showClass != 'aaa'">
            <FootBarHeader
              @getTopClass="getTopClass"
              class="footBarHeader"
            ></FootBarHeader>
            <div class="hetitle">
              <div class="big animated fadeInUp">轰隆隆-机械天眼</div>
              <div class="top animated fadeInUp">Mechanical eye</div>
              <div class="line"></div>
              <!-- <div class="text animated fadeInUp">
                方便实时掌握现场设备情况，远程指挥、调度，降低业务风险
              </div> -->
            </div>

            <div class="videoClass">
              <video id="myVideo" class="video-js bannerImg vjs-fluid">
                <source
                  src="https://file.honglonglong.com.cn/hll_newPc/Home/jxtBg.mp4"
                  type="video/mp4"
                />
              </video>
            </div>
            <div @click="nowNext">
              <lottie
                :height="49"
                :width="49"
                class="iconImg"
                :options="defaultOptions"
                @animCreated="handleAnimation"
              />
            </div>
          </div>
          <div class="homeBannerDark" v-else>
            <FootBarHeader
              @getTopClass="getTopClass"
              class="footBarHeader"
            ></FootBarHeader>
            <div class="tabTextcons">
              <div class="tabTextcon" @click="goNewpage(1)">
                <div class="tabText">
                  <span>机施通</span>
                  <span class="tabTexte">machine shitong</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
              <div class="tabTextcon" @click="goNewpage(2)">
                <div class="tabText">
                  <span>机械天眼</span>
                  <span class="tabTexte">mechanical eye</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
              <div class="tabTextcon" @click="goNewpage(3)">
                <div class="tabText">
                  <span>财税通</span>
                  <span class="tabTexte">boom tax through</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
            </div>
          </div>
        </swiper-slide>
        <swiper-slide class="swiper-slide-defalut">
          <div class="eyehomeBanner2">
            <div class="eyebanner2center">
              <div class="eyebanner2">
                <img
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{ animated: true, bounceInLeft: eyeShow2 }"
                  src="https://file.honglonglong.com.cn/hll_newPc/platformService/Meye/banner2.png"
                  alt=""
                  srcset=""
                />
              </div>
              <div
                style="animation-duration: 1s; animation-delay: 1s !important"
                :class="{
                  eyebanner2con: true,
                  animated: true,
                  bounceInRight: eyeShow2,
                }"
              >
                <!--  fadeInRight: eyeShow2, -->
                <div class="text">
                  轰隆隆工程机械智能管理网络平台结合融入了AI人工智能的IoT设备，把握调度、规范管理和优化配置资源，实现一站式机械施工，形成机械管理全方位一体化。
                </div>
                <div class="text2">
                  灵活的数据采集、处理、计算，最终将最全面、最具有价值的信息传递给用户，实现施工作业更快更好的同时兼顾人员安全保障，既能大幅度提高工作效率，也能使得冰冷机械的管理更加人性化。
                </div>
                <div class="text3">
                  为工程主、机械主、机械司机带来合作上的便利，真正意义上实现互利共赢。
                </div>
              </div>
            </div>
            <div @click="nowNext">
              <lottie
                :height="49"
                :width="49"
                class="iconImg"
                :options="defaultOptions"
                @animCreated="handleAnimation"
              />
            </div>
          </div>
        </swiper-slide>
        <swiper-slide class="swiper-slide-defalut">
          <div class="homeBanner3">
            <div
              style="animation-duration: 1s; animation-delay: 1s !important"
              :class="{ lft: true, animated: true, bounceInLeft: eyeShow3 }"
            >
              <div class="shadow">ARCHITECTURE</div>
              <div>业务总体架构</div>
              <div class="line"></div>
            </div>
            <div v-if="eyeShow3" class="">
              <lottie
                class="myEyeT"
                :options="defaultOptions3"
                @animCreated="handleAnimation"
              />
            </div>
            <div class="myEyeTbtm">
              <div
                :class="{ animated: true, fadeInUp: eyeShow3 }"
                style="
                  animation-duration: 1.7s;
                  animation-delay: 1.6s !important;
                "
              >
                基于IOT硬件的机械设备远程监控平台，为管理人员提供机械设备远程监控和精细化管理，为决策者提供决策依据
              </div>
            </div>
            <div @click="nowNext">
              <lottie
                :height="49"
                :width="49"
                class="iconImg"
                :options="defaultOptions"
                @animCreated="handleAnimation"
              />
            </div>
          </div>
        </swiper-slide>
        <swiper-slide class="swiper-slide-defalut">
          <div class="homeBanner">
            <div
              style="animation-duration: 1s; animation-delay: 1s !important"
              :class="{ topLeft: true, animated: true, bounceInLeft: eyeShow4 }"
            >
              <div class="tipTitle2">HARDWARE</div>
              <div class="tipTitle">硬件设备</div>
              <div class="tiplie"></div>
            </div>
            <div class="eyebanner3text">
              <div
                style="
                  animation-duration: 1.5s;
                  animation-delay: 1.5s !important;
                "
                :class="{ text: true, animated: true, fadeInUp: eyeShow4 }"
              >
                轰隆隆自主研发的物联网终端，是轰隆隆智慧天眼的重要组成部分
              </div>
              <div
                style="
                  animation-duration: 1.6s;
                  animation-delay: 1.6s !important;
                "
                :class="{ text: true, animated: true, fadeInUp: eyeShow4 }"
              >
                可部署在工程机械内部，用户监控机械的工作状态、位置以及工况视频等数据
              </div>
              <div
                style="
                  animation-duration: 1.7s;
                  animation-delay: 1.7s !important;
                "
                :class="{ text: true, animated: true, fadeInUp: eyeShow4 }"
              >
                使机械设备数字化，以便进行网络化、智能化监管
              </div>
            </div>
            <img
              class="banerimg"
              src="https://file.honglonglong.com.cn/hll_newPc/platformService/Meye/banner5.png"
              alt=""
            />

            <div @click="nowNext">
              <lottie
                :height="49"
                :width="49"
                class="iconImg"
                :options="defaultOptions"
                @animCreated="handleAnimation"
              />
            </div>
          </div>
        </swiper-slide>
        <swiper-slide class="swiper-slide-defalut" id="ahome">
          <div class="eyehomeBanner4">
            <div class="topLeft">
              <div v-show="upset" class="topLefttext">
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{
                    tipTitle: true,
                    animated: true,
                    fadeInUp: eyeShow5,
                  }"
                >
                  全景融合
                </div>
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{ tiptext: true, animated: true, fadeInUp: eyeShow5 }"
                >
                  以视频为入口，将所有终端数字化信息聚合呈现，并实现通过视频指挥，实现现场全融合式互动管理
                </div>
              </div>
              <div v-show="upset2" class="topLefttext">
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{
                    tipTitle: true,
                    animated: true,
                    fadeInUp: eyeShow5,
                  }"
                >
                  数字化及数据统计分析
                </div>
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{ tiptext: true, animated: true, fadeInUp: eyeShow5 }"
                >
                  数字化采集信息，针对各类监测数据进行统计分析，帮助您了解机械状况，降低运营成本。
                </div>
              </div>
              <div v-show="upset3" class="topLefttext">
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{
                    tipTitle: true,
                    animated: true,
                    fadeInUp: eyeShow5,
                  }"
                >
                  安全管理
                </div>
                <div
                  style="animation-duration: 1s; animation-delay: 1s !important"
                  :class="{ tiptext: true, animated: true, fadeInUp: eyeShow5 }"
                >
                  避免事故隐患
                  系统可机械预警，及时通过所属项目、报警类型、时间、报警机械发现机械问题，规避风险。
                </div>
              </div>
              <div
                style="
                  animation-duration: 1.5s;
                  animation-delay: 1.5s !important;
                "
                :class="{
                  dinBtmcontip: true,
                  animated: true,
                  fadeInUp: eyeShow5,
                }"
              >
                <div class="leftarrow" @click="blackData">
                  <img
                    class="lefticon"
                    src="../../../assets/img/navbar/gleftarrow.png"
                    alt=""
                  />
                </div>
                <ul class="upli">
                  <li
                    :class="{ upliset: upset, uplis: !upset }"
                    @click="upliset(1)"
                  >
                    <span class="uplinow"></span>
                  </li>
                  <li
                    :class="{ upliset: upset2, uplis: !upset2 }"
                    @click="upliset(2)"
                  >
                    <span class="uplinow"></span>
                  </li>
                  <li
                    :class="{ upliset: upset3, uplis: !upset3 }"
                    @click="upliset(3)"
                  >
                    <span class="uplinow"></span>
                  </li>
                </ul>
                <div class="rightarrow" @click="goData">
                  <img
                    class="righticon"
                    src="../../../assets/img/navbar/grightarrow.png"
                    alt=""
                  />
                </div>
              </div>
            </div>
            <div class="right">
              <swiper
                :options="swiperOptioneye"
                ref="mySwipereye"
                @slideChange="slideChangeeye()"
              >
                <swiper-slide
                  ><div class="eyec">
                    <img
                      class="img"
                      src="https://file.honglonglong.com.cn/hll_newPc/platformService/Meye/banner1-1.png"
                      alt=""
                    />
                  </div>
                </swiper-slide>
                <swiper-slide
                  ><div class="eyec">
                    <img
                      class="img"
                      src="https://file.honglonglong.com.cn/hll_newPc/platformService/Meye/banner1-2.png"
                      alt=""
                    />
                  </div>
                </swiper-slide>
                <swiper-slide
                  ><div class="eyec">
                    <img
                      class="img"
                      src="https://file.honglonglong.com.cn/hll_newPc/platformService/Meye/banner1-3.png"
                      alt=""
                    />
                  </div>
                </swiper-slide>
              </swiper>
            </div>
          </div>
        </swiper-slide>
      </swiper>
      <FooterBar class="footerBar" v-show="show"></FooterBar>
    </div>
  </div>
</template>

<script>
const animationData = require("@/assets/js/data.json");
const animationData3 = require("@/assets/js/data3.json");
const _this = this;
import FootBarHeader from "../../../components/FootBarHeader";
import HomeBanner from "../home/Homebanner";
import HomeMechanics from "../home/HomeMechanics";
import FooterBar from "../../../components/FooterBar";
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.css";
export default {
  name: "Meye",
  data() {
    return {
      swiperOption: {
        // pagination:'.swiper-pagination',
        notNextTick: true, // notNextTick是一个组件自有属性，如果notNextTick设置为true，组件则不会通过NextTick来实例化swiper，也就意味着你可以在第一时间获取到swiper对象，假如你需要刚加载遍使用获取swiper对象来做什么事，那么这个属性一定要是true
        direction: "vertical", // 水平方向移动
        grabCursor: true, // 鼠标覆盖Swiper时指针会变成手掌形状，拖动时指针会变成抓手形状
        setWrapperSize: true, // Swiper使用flexbox布局(display: flex)，开启这个设定会在Wrapper上添加等于slides相加的宽或高，在对flexbox布局的支持不是很好的浏览器中可能需要用到。
        autoHeight: true, // 自动高度。设置为true时，wrapper和container会随着当前slide的高度而发生变化
        observer: true, // 修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, // 修改swiper的父元素时，自动初始化swiper
        slidesPerView: 1, // 设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为数字（可为小数，小数不可loop），或者 'auto'则自动根据slides的宽度来设定数量。loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。
        observer: true,
        initialSlide: 0,
        mousewheel: false, // 开启鼠标滚轮控制Swiper切换。可设置鼠标选项，默认值false
        height: window.innerHeight, // 高度设置，占满设备高度
        // autoHeight: true, // 高度随内容变化
        resistanceRatio: 0, // 抵抗率。边缘抵抗力的大小比例。值越小抵抗越大越难将slide拖离边缘，0时完全无法拖离。本业务需要
        observeParents: true, // 将observe应用于Swiper的父元素。当Swiper的父元素变化时，例如window.resize，Swiper更新
        // autoplayDisableOnInteraction: false, //鼠标划过之后继续轮播
        speed: 1000, // 滚动速度
      },
      swiperOptioneye: {
        notNextTick: true, // notNextTick是一个组件自有属性，如果notNextTick设置为true，组件则不会通过NextTick来实例化swiper，也就意味着你可以在第一时间获取到swiper对象，假如你需要刚加载遍使用获取swiper对象来做什么事，那么这个属性一定要是true
        direction: "horizontal", // 水平方向移动
        grabCursor: false, // 鼠标覆盖Swiper时指针会变成手掌形状，拖动时指针会变成抓手形状
        setWrapperSize: false, // Swiper使用flexbox布局(display: flex)，开启这个设定会在Wrapper上添加等于slides相加的宽或高，在对flexbox布局的支持不是很好的浏览器中可能需要用到。
        autoplay: false,
        loop: true,
        // autoHeight: true, // 自动高度。设置为true时，wrapper和container会随着当前slide的高度而发生变化
        observer: true, // 修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, // 修改swiper的父元素时，自动初始化swiper
        slidesPerView: 1, // 设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为数字（可为小数，小数不可loop），或者 'auto'则自动根据slides的宽度来设定数量。loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。

        initialSlide: 0,
        observer: true, //修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, //修改swiper的父元素时，自动初始化swiper
        mousewheel: false, // 开启鼠标滚轮控制Swiper切换。可设置鼠标选项，默认值false
        // height: window.innerHeight, // 高度设置，占满设备高度
        // autoHeight: true, // 高度随内容变化
        resistanceRatio: 0, // 抵抗率。边缘抵抗力的大小比例。值越小抵抗越大越难将slide拖离边缘，0时完全无法拖离。本业务需要
        observeParents: true, // 将observe应用于Swiper的父元素。当Swiper的父元素变化时，例如window.resize，Swiper更新
        autoplayDisableOnInteraction: true, //鼠标划过之后继续轮播
        speed: 1000, // 滚动速度
        // autoplayDisableOnInteraction: false,
      },
      defaultOptions: { animationData: animationData, loop: true },
      defaultOptions3: { animationData: animationData3, loop: false },
      defalut_top: 0,
      show: false,
      showClass: false,
      upset: true,
      upset2: false,
      upset3: false,
      eyeShow2: false,
      eyeShow3: false,
      eyeShow4: false,
      eyeShow5: false,
      // 视频
      initVideo() {
        //此处初始化的调用，我放在了获取数据之后的方法内，而不是放在钩子函数mounted
        //页面dom元素渲染完毕，执行回调里面的方法
        this.$nextTick(() => {
          let myPlayer = this.$video(document.getElementById("myVideo"), {
            //确定播放器是否具有用户可以与之交互的控件。没有控件，启动视频播放的唯一方法是使用autoplay属性或通过Player API。
            controls: false,
            muted: false,
            //自动播放属性,muted:静音播放
            autoplay: "muted",
            //建议浏览器是否应在<video>加载元素后立即开始下载视频数据。
            preload: true, //预加载：string；'auto'|'true'|'metadata'|'none'
            loop: true,
          });
        });
      },
    };
  },
   watch:{
   $route(to,from){
    this.$router.go(0)
   }
  },
  components: {
    FootBarHeader,
    HomeBanner,
    HomeMechanics,
    Swiper,
    SwiperSlide,
    FooterBar,
  },
  computed: {
    swiper() {
      return this.$refs.mySwiper.$swiper;
    },
  },
  mounted() {
    this.initVideo();
    this.scrollFunction();
    // this.$router.go(0);
    console.log("Current Swiper instance object", this.swiper);
    window.addEventListener("scroll", this.handleScroll, true);
    this.$refs.mySwiper.$swiper.mousewheel.enable();
  },
  destroyed() {
    if (!this.domObj) return;
    if (this.domObj.attachEvent) {
      this.domObj.detachEvent("onmousewheel", this.mouseScroll);
    }
    if (this.domObj.addEventListener) {
      this.domObj.removeEventListener(
        "DOMMouseScroll",
        this.mouseScroll,
        false
      );
    }
  },
  methods: {
    goData() {
      this.$refs.mySwipereye.$swiper.slideNext();
    },
    blackData() {
      this.$refs.mySwipereye.$swiper.slidePrev();
    },
    upliset(data) {
      if (data == 1) {
        this.upset = true;
        this.upset2 = false;
        this.upset3 = false;
        this.$refs.mySwipereye.$swiper.slideTo(1, 1000, false);
      } else if (data == 2) {
        this.upset = false;
        this.upset2 = true;
        this.upset3 = false;
        this.$refs.mySwipereye.$swiper.slideTo(2, 1000, false);
      } else if (data == 3) {
        this.upset = false;
        this.upset2 = false;
        this.upset3 = true;
        this.$refs.mySwipereye.$swiper.slideTo(3, 1000, false);
      }
    },
    goNewpage(data) {
      if (data === 1) {
        this.$router.push({ path: "p_jst" });
      } else if (data === 2) {
        this.$router.go(0)
        // this.showClass=false
        // this.initVideo();
        // this.$router.push({ path: "p_eye" });
        // this.$router.push({ path: "p_eye" });
      } else if (data === 3) {
        this.$router.push({ path: "p_hst" });
      }
    },
    handleAnimation: function (animate) {
      this.animObj = animate;
      // console.log(animate); //这里可以看到 lottie 对象的全部属性
    },
    nowNext() {
      this.$refs.mySwiper.$swiper.slideNext();
    },
    getTopClass(data) {
      this.showClass = data;
      this.initVideo();
      console.log(data);
    },
    scrollFunction() {
      this.domObj = document.getElementById("ahome"); // 通过id获取要设置的div
      if (this.domObj.attachEvent) {
        // IE
        this.domObj.attachEvent("onmousewheel", this.mouseScroll);
      } else if (this.domObj.addEventListener) {
        this.domObj.addEventListener("DOMMouseScroll", this.mouseScroll, false);
      }
      this.domObj.onmousewheel = this.domObj.onmousewheel = this.mouseScroll;
    },
    mouseScroll(event) {
      // google 浏览器下
      let detail = event.wheelDelta || event.detail; // 判读滚动方向
      // console.log(detail);
      // console.log( this.i)  // 是否离开底部
      if (detail > 0 && !this.i) {
        this.$router.afterEach((to, from, next) => {
          window.scrollTo(0, 0);
        });
        this.$refs.mySwiper.$swiper.mousewheel.enable();
      }
    },
    slideChange(e) {
      const activeIndex = this.$refs.mySwiper.$swiper.activeIndex;
      if (activeIndex == 1) {
        this.eyeShow2 = true;
      } else if (activeIndex == 2) {
        this.eyeShow3 = true;
      } else if (activeIndex == 3) {
        this.eyeShow4 = true;
      }
      if (activeIndex === 4) {
        this.eyeShow5 = true;
        this.show = true;
        setTimeout(() => {
          this.$refs.mySwiper.$swiper.mousewheel.disable();
        }, 500);
      } else {
        this.show = false;
      }
    },
    slideChangeeye(e) {
      this.activeIndexeye = this.$refs.mySwipereye.$swiper.activeIndex;
      if (this.activeIndexeye === 1 || this.activeIndexeye === 4) {
        this.upset = true;
        this.upset2 = false;
        this.upset3 = false;
      } else if (this.activeIndexeye === 2) {
        this.upset = false;
        this.upset2 = true;
        this.upset3 = false;
      } else if (this.activeIndexeye === 3) {
        this.upset = false;
        this.upset2 = false;
        this.upset3 = true;
      }
    },
    handleScroll() {
      // 页面滚动距顶部距离
      var scrollTop =
        window.pageYOffset ||
        document.documentElement.scrollTop ||
        document.body.scrollTop;
      var scroll = scrollTop - this.i;
      this.i = scrollTop;
      if (scroll < 0) {
        if (scrollTop < 10) {
          this.$refs.mySwiper.$swiper.mousewheel.enable();
        }
      } else {
        console.log("down");
      }
    },
  },
};
</script>
<style lang="scss" scoped>
.swiper_box {
  position: relative;
}
.topLefttext {
  height: 100px;
}
.iconImg {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 49px;
  height: 49px;
  z-index: 10;
}
.swiper-slide-defalut {
  height: 100vh;
  overflow: hidden;
}
.home {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.3);
}
.homeBanner3 {
  position: relative;
  width: 100vw;
  height: 100vh;
  // background: url(https://file.honglonglong.com.cn/hll_newPc/footerBar/banner1border.png) no-repeat;
  background-size: 100% 100%;
  .lft {
    position: absolute;
    top: 8%;
    left: 6%;
    font-size: 26px;
    font-weight: 400;
    color: #000000;
    margin-top: 64px;
    .shadow {
      position: absolute;
      top: -20px;
      font-size: 40px;
      font-weight: normal;
      // color: #f5f5f5;
      opacity: 0.05;
    }
    .line {
      width: 28px;
      height: 3px;
      background: #ff855b;
      margin-top: 11px;
    }
  }
  .myEyeT {
    position: absolute;
    bottom: 167px;
    left: 50%;
    transform: translate(-50%, 15%);
    z-index: 20;
  }
  .myEyeTbtm {
    position: absolute;
    bottom: 94px;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #303133;
  }
}
.homeBanner {
  width: 100vw;
  height: 100vh;
  .eyebanner3text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 6%;
    width: 366px;
    height: 48px;
    line-height: 24px;
    .text {
      // width: 400px;
      margin-top: 10px;
    }
  }

  .topLeft {
    color: #ffffff;
    position: absolute;
    top: 25%;
    left: 6%;

    .tipTitle2 {
      width: 282px;
      height: 20px;
      font-size: 40px;
      font-weight: 800;
      opacity: 0.2;
    }
    .tipTitle {
      font-size: 30px;
      font-weight: 500;
      letter-spacing: 2px;
    }

    .tipCnt {
      color: #909399;
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 2px;
      margin-top: 6px;
    }

    .tiplie {
      width: 28px;
      height: 3px;
      background: #ff855b;
      margin-top: 15px;
    }
  }
  .banerimg {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  .videoClass {
    width: 100vw;
    height: 100vh;
    position: relative;
  }
  .hetitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 848px;
    height: 263px;
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
    background: url(https://file.honglonglong.com.cn/hll_newPc/footerBar/banner1border.png)
      no-repeat;
    background-size: 100% 100%;
    color: #ffffff;
    .top {
      font-size: 20px;
      font-weight: 500;
      margin-top: 20px;
    }
    .big {
      font-size: 50px;
      font-weight: bold;
      margin-top: 20px;
    }
    .line {
      width: 200px;
      height: 1px;
      background: #ffffff;
      margin: 41px 0;
    }
    .text {
      font-size: 18px;
      font-weight: 500;
      .key {
        color: #ff855b;
      }
    }
  }
}

.eyehomeBanner2 {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  .eyebanner2center {
    width: 70vw;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .eyebanner2 {
      padding: 0px 1px;
      z-index: 1;
      transition: all 0.6s; //设置动画执行的时间为0.6s
      img {
        width: 737px;
        height: 378px;
        cursor: pointer;
      }
    }
    .eyebanner2:hover {
      padding: 0px 0px;
      z-index: 11;
      margin-right: 70px;
      transform: scale(1.03); /*以y轴为中心旋转*/
      img {
        width: 737px;
        height: 378px;
        cursor: pointer;
      }
    }
    // .eyebanner2:before {
    //   visibility: hidden;
    //   content: "";
    //   position: absolute;
    //   left: 50%;
    //   top: 0;
    //   width: 0;
    //   height: 100%;
    //   background: #2a2b2c;
    //   z-index: -1;
    //   transform: skew(45deg, 0);
    //   transition: all 0.35s;
    // }
    // .eyebanner2:hover:before {
    //   visibility: visible;
    //   width: 150%;
    //   left: -25%;
    // }
    .eyebanner2con {
      padding: 0px 1px;
      z-index: 10;
      margin: -80px 0 0 -120px;
      cursor: pointer;
      transition: all 0.6s; //设置动画执行的时间为0.6s
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      width: 737px;
      height: 378px;
      background: linear-gradient(135deg, #ff855b 0%, #484e61 100%);
      .text {
        width: 511px;
      }
      .text2 {
        width: 511px;
        margin-top: 20px;
      }
      .text3 {
        width: 511px;
        margin-top: 20px;
      }
    }
    .eyebanner2con:hover {
      padding: 0px 0px;
      z-index: 10;
      margin: -80px 0 0 -120px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      width: 737px;
      height: 378px;
      cursor: pointer;
      transform: scale(1.03); /*以y轴为中心旋转*/
      background: linear-gradient(135deg, #ff855b 0%, #484e61 100%);
      .text {
        width: 511px;
      }
      .text2 {
        width: 511px;
        margin-top: 20px;
      }
      .text3 {
        width: 511px;
        margin-top: 20px;
      }
    }
  }
}
.eyehomeBanner4 {
  width: 99vw;
  height: 100vh;
  .topLeft {
    color: #303133;
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translate(0, -50%);
    .tipTitle {
      font-size: 30px;
      font-weight: 500;
      letter-spacing: 2px;
    }
    .tiptext {
      font-size: 18px;
      color: #909399;
      width: 310px;
      margin-top: 20px;
    }
    .dinBtmcontip {
      margin-top: 66px;
      // position: absolute;
      // bottom: 50px;
      // left: 50%;
      // transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      .leftarrow {
        width: 50px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        .lefticon {
          width: 40px;
          height: 17px;
          cursor: pointer;
        }
      }
      .upli {
        display: flex;
        align-items: center;
        .uplis {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 26px;
          height: 26px;
          margin-left: 20px;
          cursor: pointer;
          .uplinow {
            width: 6px;
            height: 6px;
            background: #606266;
            border-radius: 50%;
          }
        }
        .upliset {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 26px;
          height: 26px;
          border-radius: 50%;
          border: 1px solid #606266;
          margin-left: 20px;
          cursor: pointer;
          .uplinow {
            width: 6px;
            height: 6px;
            background: #606266;
            border-radius: 50%;
          }
        }
      }
      .rightarrow {
        width: 50px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 20px;
        .righticon {
          width: 40px;
          height: 17px;
          cursor: pointer;
        }
      }
    }
  }
  .right {
    width: 594px;
    height: 567px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translate(0, -50%);
    .eyec {
      width: 100%;
      height: 540px;
      background: #ff855b;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      .img {
        width: 594px;
        height: 375px;
      }
    }
  }
}
.homeBannerDark {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: #202734;
  .tabTextcons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .tabTextcon {
      width: 360px;
      font-size: 24px;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      // flex-direction: column;
      margin-top: 70px;
      .tabText {
        display: flex;
        flex-direction: column;
        .tabTexte {
          font-size: 14px;
          color: #909399;
          margin-top: 8px;
        }
      }
      .raLcon {
        width: 37px;
        height: 11px;
        // margin-left: 144px ;
      }
    }
    .tabTextcon:hover {
      cursor: pointer;
    }
  }
}
.HomeContent {
  object-fit: cover;
  width: 100%;
  height: 100vh;
}
.footBarHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.footer-swiper {
  height: 336px !important;
}
</style>
